package command;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/11 14:05
 * @Description: 购买货物命令类
 */
public class BuyStock implements Order {
    private Stock stock;

    public BuyStock(Stock stock) {
        this.stock = stock;
    }

    /**
     * 命令操作方法
     */
    @Override
    public void execute() {
        stock.buy();
    }
}
